home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0971.dms / q0971.adf / programmer / prog / rien.dark.c < prev    next >
C/C++ Source or Header  |  1997-04-10  |  2KB  |  62 lines

  1. /****************************************/
  2. /* file rien.dark.c             */
  3. /* This file is a skeleton to         */
  4. /* create new blankers for SuperDark    */
  5. /* This one does absolutly nothing, but */
  6. /* you can easyly take it and put your  */
  7. /* own dark() function...read the docs! */
  8. /****************************************/
  9.  
  10. /****************************************************************/
  11. /* v1.1 22/06/93 Add a return value in the dark function    */
  12. /****************************************************************/
  13.  
  14. #include    <exec/types.h>
  15. #include    <exec/ports.h>
  16. #include    <dos/dos.h>
  17. #include    "/includes/struct.h"
  18. #include    "/includes/tom_gadget.h"
  19.  
  20. extern    struct    RastPort    *rp;
  21. extern    struct    Screen        *s;
  22. extern    struct    appel_proc    *p_data_proc;
  23.  
  24. char    *name_module="vide.dark";
  25. char    *p_text_info=
  26. "Rien\n"
  27. "This programm do nothing\n"
  28. "It's a skeletton for your own\n"
  29. "purpose";
  30.  
  31. /* An empty list of gadget....*/
  32. struct    tom_gadget    my_gadg[]={
  33.     {0,        END_LISTE,  0,  0,   0, 0, 0,0,0,0,0}};
  34.  
  35.  
  36. /**************************/
  37. /* Put here your own code */
  38. /**************************/
  39. LONG    dark()
  40. {
  41.     wait_end();
  42.     DCloseScreen(NULL);
  43.     return(NULL);
  44. }
  45.  
  46. /************************************************************************/
  47. /* These 3 function have to be here, even if they are empty         */
  48. /************************************************************************/
  49.  
  50. void    proc_init()
  51. {
  52.     /* This tel you that you don't want a copy of the WBench screen */
  53.     p_data_proc->type_screen=SCR_OWN;
  54. }
  55.  
  56. void    proc_save()
  57. {
  58. }
  59. void    proc_end()
  60. {
  61. }
  62.